5.3.3 APPX Application Design Manual

+ Chapter 1-1: Overview of Application Design
+ Chapter 1-2: Getting Started
+ Chapter 1-3: Data Dictionary
+ Chapter 1-4: Understanding Process Design
+ Chapter 1-5: Interprocess Communication
+ Chapter 1-6: Customizing Your Application
+ Chapter 1-7: The Documentation Facility
+ Chapter 1-8: Application Design Tools
+ Chapter 2-1: Data Dictionary Overview
+ Chapter 2-2: Data Dictionary Concepts
+ Chapter 2-3: Domains
+ Chapter 2-4: Files and Fields
+ Chapter 2-5: Work Fields
+ Chapter 3-1: Overview of APPX Processes
+ Chapter 3-2: Getting Started
+ Chapter 3-3: Process Definition
+ Chapter 3-4: Menu Processes
+ Chapter 3-5: Job Processes
+ Chapter 3-6: Input Processes
+ Chapter 3-7: Output Processes
+ Chapter 3-8: Update Processes
+ Chapter 3-9: Query Processes
+ Chapter 3-10: Inquiry Processes
+ Chapter 3-11: Status Processes
+ Chapter 3-12: Subroutine Processes
+ Chapter 3-13: Table Processes
+ Chapter 3-14: Automatic and Optional Children
+ Chapter 3-15: Using the Image Editor
- Chapter 3-16: Using GUI Features of the Image Editor
+ Chapter 3-17: Using Event Points
+ Chapter 4-1: ILF Integration
+ Chapter 4-2: True/False Status Indicators
+ Chapter 4-3: Specifying Statements
+ Chapter 4-4: The ILF Editor
+ Chapter 4-5: The Appx ILF Debugger
+ Chapter 4-6: ILF Keyword Reference
+ Chapter 4-7: Predefined Fields
+ Chapter 4-8: Runtime Subroutine's and Predefined Processes
+ Chapter 4-9: Appx Chart Director API

Chapter 3-16: Using GUI Features of the Image Editor

HTML Editor Widget


Overview:

The HTML Editor Widget can be used to enter and edit HTML in an APPX text field. The text field will contain the HTML code after the user has entered it.

Design Usage:

Use the Image Editor to add a text field to your image and resize it to be the size that you would like for your HTML Editor Widget. Then edit the GUI Attributes of the field and select "HTML EDITOR" as the control.

Show editor decorations?  A check will always show the HTML editor toolbar/footer in the field.  A blank will never show the toolbar/footer and will add an icon to popup a floating editor window instead.  A ? lets the client choose which is best (default). In this case the client will look at the spec for "editorFullMinRows" (default 6). If the field is at least this many rows on the screen it will show the full editor with toolbars and footer in the field. If less than that many rows it will switch to no toolbars and footer and will add the popup icon. When the popup window fires it will default to a physical size that is based on two client properties "editorHeight" and "editorWidth" which default to 400 and 600 respectively. Once the popup fires you can move and resize it. All client settings are under [UIDefaults] and can be changed after login via .CLIENT LOAD URL.

The icon for the editor popup will appear to the right of the first row of the field:

Runtime Usage:

At runtime, the user will be able to enter text as if they were using a mini word processor. The saved text can be displayed later using a HTML VIEWER control, if desired.

Customizing the editor

Appx uses the open source editor ckeditor for this widget. You can futher customize the capabilities of the editor (such as adding spell checking) by creating a custom configuration file. Refer to the documentation on the ckeditor website for creating a custom configuration file. Appx uses the 'compiled' format of the configuration file. As of this writing, Appx is using version 3.6.4 of CkEditor for Java.

Once you have created the file, place it in the Resource directory of your application and add a Resource for it. The resource state should be EDITOR CONFIG, location type should be Design File and the Location data should be the config file name (case sensitive on Linux/Unix systems). Finally, add the resource to the HTML editor widget. You may have to log off & on again for the new configuration to take affect.

This sample configuration file re-arranges the toolbar and adds spell checking:

{
  skin : 'office2003',
  autoParagraph : false,
// disableNativeSpellChecker : false,
  toolbar :
    [ +
      ['SelectAll','Cut','Copy','Paste','PasteText','PasteFromWord','-', +
       'Undo','Redo','Find','Replace','SpellChecker','Scayt'], +
      ['Font','FontSize','TextColor','BGColor','Bold','Italic','Underline'
], +
      ['JustifyLeft','JustifyCenter','JustfyRight','JustifyBlock'], +
      ['Styles','Format'], +
      ['Link','Table','HorizontalRule','Source'] +
    ],
};

Application Design Manual                                         "Powered by Appx Software"

1311

©2006 By APPX Software, Inc. All Rights Reserved